<?php

    #-------------------------------------------------------------#
	# This file is part of the Tekuna MVC Microframework for PHP. #
	# (c) 2009 Niels Jäckel <niels.jaeckel@tekuna.org>            #
	# Please visit http://tekuna.org/ for more information.       #
	#                                                             #
	# This software is licensed under the MIT License. Please     #
	# view the LICENSE file for the full text of this license.    #
    #-------------------------------------------------------------#


	Tekuna :: load('org.tekuna.core.config.ApplicationModule');


	/**
	 * Interface for a layout composer. This application fragment builds the
	 * final content by processing the template of the application module and
	 * filling the slots with given component outputs.
	 */

	interface TekunaLayoutComposer {


		/**
		 * Set the application module
		 *
		 * @param ApplicationModule $objModule
		 */

		public function setModule(ApplicationModule $objModule);


		/**
		 * Processes the application module's template and filling
		 * the slots with the given values. The result is returned.
		 *
		 * @param array $arrSlotOutputs the outputs for the slots as associative array
		 * @return string the final output
		 */

		public function composeLayout(array $arrSlotOutputs);
	}
